package com.wing.purchase.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.purchase.model.entity.SupplierDueSubjectCategory;
import com.wing.purchase.model.request.SupplierDueSubjectCategoryForm;
import com.wing.purchase.model.response.SupplierDueSubjectCategoryVO;

import java.util.List;
import java.util.Map;

/**
 * 渠道尽调科目分类-Service
 *
 * @author
 */
public interface SupplierDueSubjectCategoryService extends IService<SupplierDueSubjectCategory> {

    /**
     * 添加
     *
     * @param supplierDueSubjectCategoryForm
     * @return
     */
    int add(SupplierDueSubjectCategoryForm supplierDueSubjectCategoryForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<SupplierDueSubjectCategoryVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<SupplierDueSubjectCategoryVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    SupplierDueSubjectCategoryVO get4appById(Long id);

    JsonResult getTreeData(Long selectId);

    int enable(Long id);

    int disable(Long id);

    /**
     * 删除
     * @param supplierDueSubjectCategoryId
     * @return
     */
    boolean delete(Long supplierDueSubjectCategoryId);
}
